package com.jasiri.project.lib.analysis.http

import com.jasiri.project.utils.http.HttpHelper
import com.jasiri.project.utils.http.IHttpCallback
import org.json.JSONObject

object AnalysisRequestHelper {
    fun post(toUrl: String, body: String) {
        if (toUrl.isBlank()) return
        if (body.isBlank()) return

        HttpHelper.post(toUrl, JSONObject(body),object : IHttpCallback{
            override fun onRequestSuccess(data: JSONObject) {
            }

            override fun onRequestError(error: JSONObject) {
            }

            override fun onRequestFinish() {
            }
        })
    }
}


